package com.liuc.practice.ipersistent.test.pojo;

import lombok.Data;

/**
 * @Author Liu Chang
 * @Date 2020/12/13 9:06 下午
 */
@Data
public class User {
    private String id;

    private String name;

    /**
     * 为了使用反射创建实例的时候不报错
     */
    public User() { }

    /**
     * 为了方便测试初始化
     * @param userId
     */
    public User(String userId) {
        this.id = userId;
    }

    public User(String userId, String userName) {
        this.id = userId;
        this.name = userName;
    }
}
